import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@assets/fonts/iconfont.css'
import '@assets/css/reset.css'
import { Icon, Button, Tabbar, TabbarItem, Swipe, SwipeItem, Grid, GridItem, PullRefresh, List, Sidebar, SidebarItem, Search, Empty, NavBar, Loading, GoodsAction, GoodsActionIcon, GoodsActionButton, Popup, Card, Stepper, Form, Field, Checkbox, SwipeCell, SubmitBar, AddressEdit, Area, AddressList, ContactCard, Lazyload, Cell, CellGroup } from 'vant'

Vue.config.productionTip = false

Vue.use(Icon)
  .use(Button)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(PullRefresh)
  .use(List)
  .use(Sidebar)
  .use(SidebarItem)
  .use(Search)
  .use(Empty)
  .use(NavBar)
  .use(Loading)
  .use(GoodsAction)
  .use(GoodsActionIcon)
  .use(GoodsActionButton)
  .use(Popup)
  .use(Card)
  .use(Stepper)
  .use(Field)
  .use(Form)
  .use(Checkbox)
  .use(SwipeCell)
  .use(SubmitBar)
  .use(AddressEdit)
  .use(Area)
  .use(AddressList)
  .use(ContactCard)
  .use(Lazyload, {
    loading: '',
    error: '',
    preload: '1'
  })
  .use(Cell)
  .use(CellGroup)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
